<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  User: Hystar
  Date: 2022/11/18
  Time: 18:45
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <title>修改密码</title>
</head>
<%
    if (request.getSession().getAttribute("username") == null) {
        response.sendRedirect("/member/login.jsp");
    }
%>

<%
    if (request.getSession().getAttribute("user_chPass_message") != null) {
        out.print("<script>alert(\"" + (request.getSession().getAttribute("user_chPass_message")) + "\");</script>"); // 弹窗提示
        request.getSession().removeAttribute("user_chPass_message"); // 删除会话
    }
%>
<body>
<a href="<c:url value="/index.jsp"/>">返回主页</a>
<form method="post" id="form1" name="form1" action="${pageContext.request.contextPath}/deal/password.jsp">
    <table>
        <tr>
            <td colspan="2">
                <label>登录</label>
            </td>
        </tr>
    </table>
    <label>
        原密码：
        <input type="password" name="password"/>
    </label><br>
    <label>
        新密码：
        <input type="password" name="newPassword"/>
    </label><br>
    <label>
        验证码：
        <input type="text" name="validateCode">
    </label><br>
    <label>
        <img src="<c:url value="/validateCode"/>" alt="validateCode" height="60px">
    </label><br>
    <input type="submit" value="提交">
</form>
</body>
</html>
